﻿@model tutors_clus.Models.course

@{
    ViewBag.Title = "Create_Class";
    Layout = "~/Views/Shared/_Layout_Private.cshtml";
}
<script src="~/Plugin/ckeditor/ckeditor.js"></script>
<div id="cleft">@Html.Partial("_menu_teacher")</div>

<div id="cright">
<div class="Breadcrumb">
    <ul>
        <li>@Html.ActionLink(" ", "index", "Teacher", null, new { @class="home",title="Trang của bạn"})</li>
        <li>Tạo lớp mới</li>
    </ul>
</div>
<div class="content_i">
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>course</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.name_cou)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.name_cou)
            @Html.ValidationMessageFor(model => model.name_cou)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.limited_num)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.limited_num)
            @Html.ValidationMessageFor(model => model.limited_num)
        </div>

        

        <div class="editor-label">
            @Html.LabelFor(model => model.startdate_cou)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.startdate_cou)
            @Html.ValidationMessageFor(model => model.startdate_cou)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.enddate_cou)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.enddate_cou)
            @Html.ValidationMessageFor(model => model.enddate_cou)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.decription_cou)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.decription_cou)
            @Html.ValidationMessageFor(model => model.decription_cou)
        </div>

        <p>
            <input type="submit" value="Tạo lớp" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script>
    CKEDITOR.replace("decription_cou", { height: 300 });
    CKEDITOR.config.toolbar = [
        { name: 'styles', items: ['Font', 'FontSize'] },
        { name: 'colors', items: ['TextColor', 'BGColor'] },
        { name: 'clipboard', items: ['Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo'] },

        { name: 'paragraph', items: ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', ] },
        { name: 'insert', items: ['HorizontalRule', 'Smiley', 'SpecialChar'] },
        { name: 'paragraph1', items: ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'] },
        { name: 'links', items: ['Link', 'Unlink', 'Anchor'] },
        { name: 'basicstyles', items: ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat'] },
    ];
    $(document).ready(function () {

        $("#startdate_cou").datepicker({
            dateFormat: 'dd/mm/yy',
            changeMonth: true,
            changeYear: true
        });
    });
</script>
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
</div>
</div>
